package com.shuma.upms.user.domain.dto;

import lombok.Data;
import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class UserUpdateDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Pattern(regexp = "^\\S{5,16}$", message = "用户名长度必须为5-16位非空字符")
    private String username;

    @Email(message = "邮箱格式不正确")
    private String email;

    private String phone;

    private String roleCode;
}